<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/att.tld" prefix="att"%>
<html>
<head>
<meta name="decorator" content="moduleList" />
</head>
<body>
		<div class="Report_f">
	        <div class="Report_f_1">
	             <div class="Report_f_title_1">用户信息</div>
	                <div class="o-l-search-builder f_1">
        			<button type="button" class="btn btn-info btn_5 btn_right" onclick="window.open('${contextPath}/biz/brand/supplier/apply?reJsp=userinfo&navId=${navId }','_self')">成为茂业供应商</button>
        		</div> 
		
			<ul class="nav nav-tabs Report_f_title_2">
			<li class="active"><a href="#home" data-toggle="tab">基本信息</a></li>
			  <li><a href="#bus_tab"  data-toggle="tab"  >营业执照信息</a></li> 
			  <li><a href="#tax_tab"  data-toggle="tab"  >纳税人证明</a></li> 
			  <li><a href="#contacts_tab"  data-toggle="tab"  >联系方式</a></li> 
			  <li><a href="#bank_tab"  data-toggle="tab"  >银行账户</a></li> 
			  <li><a href="#coopBrand_tab"  data-toggle="tab"  >合作的品牌</a></li>
			  <li><a href="#att_tab"  data-toggle="tab"  >附件</a></li>
			   <li><a href="#workflow" data-toggle="tab">流程审批</a></li> 
			  <li><a href="#diagram" data-toggle="tab">流程图</a></li>
			</ul>
			 <div class="tab-content Report_f_title_3">
                <div class="Report_f_title_5">
                 <div class="tab-content Report_f_title_3">
                 <tags:message content="${message}" />
                  <div class="tab-pane active" id="home">
                     <div class="Report_f_title_4">
                     <tags:message content="${msg}"/>
						  <div class="f_2">
								<div class="form-group col-sm-6">
								<label for="inputtext3" class="col-sm-4 control-label f_7">公司名称:</label>
								<div class="col-sm-8 f_6">
									${supplier.cname}
								</div>
							</div>
							<div class="form-group col-sm-6">
								<label for="inputtext3" class="col-sm-4 control-label f_7">供应商编号:</label>
									<div class="col-sm-8 f_6">
										${supplier.supplierNo}
									</div>
							</div>
						</div>
						<div class="f_3">
							<div class="form-group col-sm-6">
									<label for="inputtext3" class="col-sm-4 control-label f_7">供应商类型:</label>
									<div class="col-sm-8 f_6">
										<ossp:value dictType="supplierType" key="${supplier.supplierType}"/>
									</div>
							</div>
							<div class="form-group col-sm-6">
									<label for="inputtext3" class="col-sm-4 control-label f_7">供应商性质:</label>
									<div class="col-sm-8 f_6">
										<ossp:value dictType="SUPPLIER_QUALITY" key="${supplier.quality}"></ossp:value>
									</div>
							</div>
						</div>
                     <div class="f_2">
								<div class="form-group col-sm-6">
								<label for="inputtext3" class="col-sm-4 control-label f_7">供应商状态:</label>
								<div class="col-sm-8 f_6">
									<ossp:value dictType="SUPPLIER_STATUTS" key="${supplier.supplierStatus}"/>
								</div>
							</div>
							<div class="form-group col-sm-6">
								<label for="inputtext3" class="col-sm-4 control-label f_7">供应商等级:</label>
									<div class="col-sm-8 f_6">
										<ossp:value dictType="SUPPLIER_LEVEL" key="${supplier.supplierLevel}"/>
									</div>
							</div>
						</div>
						<div class="f_3">
							<div class="form-group col-sm-6">
									<label for="inputtext3" class="col-sm-4 control-label f_7">组织机构代码:</label>
									<div class="col-sm-8 f_6">
										${supplier.organizationCode}
									</div>
							</div>
							<div class="form-group col-sm-6">
									<label for="inputtext3" class="col-sm-4 control-label f_7">企业地址:</label>
									<div class="col-sm-8 f_6">
										${supplier.address}
									</div>
							</div>
						</div>
                       <div class="f_2">
								<div class="form-group col-sm-6">
								<label for="inputtext3" class="col-sm-4 control-label f_7">办公地址:</label>
								<div class="col-sm-8 f_6">
									${supplier.workAddress}
								</div>
							</div>
							<div class="form-group col-sm-6">
								<label for="inputtext3" class="col-sm-4 control-label f_7">企业网址:</label>
									<div class="col-sm-8 f_6">
										${supplier.url}
									</div>
							</div>
						</div>
						<div class="f_3">
							<div class="form-group col-sm-6">
									<label for="inputtext3" class="col-sm-4 control-label f_7">企业电话:</label>
									<div class="col-sm-8 f_6">
										${supplier.companyMoble}
									</div>
							</div>
							<div class="form-group col-sm-6">
									<label for="inputtext3" class="col-sm-4 control-label f_7">企业传真:</label>
									<div class="col-sm-8 f_6">
										${supplier.fax}
									</div>
							</div>
						</div>
						 <div class="f_2">
								<div class="form-group col-sm-6">
								<label for="inputtext3" class="col-sm-4 control-label f_7">企业邮箱:</label>
								<div class="col-sm-8 f_6">
									${supplier.email}
								</div>
							</div>
							<div class="form-group col-sm-6">
								<label for="inputtext3" class="col-sm-4 control-label f_7">员工人数:</label>
									<div class="col-sm-8 f_6">
										${supplier.comEmployees}
									</div>
							</div>
						</div>
						<div class="f_3">
							<div class="form-group col-sm-6">
									<label for="inputtext3" class="col-sm-4 control-label f_7">供应商上级名称:</label>
									<div class="col-sm-8 f_6">
										${supplier.parentSupplierName}
									</div>
							</div>
							<div class="form-group col-sm-6">
									<label for="inputtext3" class="col-sm-4 control-label f_7">市场运作年限:</label>
									<div class="col-sm-8 f_6">
										${supplier.marketRunYear}
									</div>
							</div>
						</div>
						<div class="f_2">
								<div class="form-group col-sm-6">
								<label for="inputtext3" class="col-sm-4 control-label f_7">成立日期:</label>
								<div class="col-sm-8 f_6">
									<fmt:formatDate value="${supplier.foundDate}" pattern="yyyy-MM-dd"/>
								</div>
							</div>
						</div>
						<div class="f_3">
							<div class="form-group col-sm-6">
									<label for="inputtext3" class="col-sm-4 control-label f_7">企业简介:</label>
									<div class="col-sm-5 f_7">
									<textarea rows="5" cols="80" class="form" readonly="readonly">${supplier.summary}</textarea>
									</div>
							</div>
						</div>
					</div>
				</div>
			  	<div class="tab-pane" id="bus_tab">
				 <div class="Report_f_title_4"> 
					 <div class="f_2">
								<div class="form-group col-sm-6">
								<label for="inputtext3" class="col-sm-4 control-label f_7">营业执照号:</label>
								<div class="col-sm-8 f_6">
									${supplier.supplierRegister.businessNo}
								</div>
							</div>
							<div class="form-group col-sm-6">
								<label for="inputtext3" class="col-sm-4 control-label f_7">法定代表人姓名:</label>
									<div class="col-sm-8 f_6">
										${supplier.supplierRegister.legalPerson}
									</div>
							</div>
						</div>
						<div class="f_3">
							<div class="form-group col-sm-6">
									<label for="inputtext3" class="col-sm-4 control-label f_7">营业执照注册地方:</label>
									<div class="col-sm-8 f_6">
										${supplier.supplierRegister.registerAddress}
									</div>
							</div>
							<div class="form-group col-sm-6">
									<label for="inputtext3" class="col-sm-4 control-label f_7">营业执照有效期:</label>
									<div class="col-sm-8 f_6">
										<fmt:formatDate value="${supplier.supplierRegister.registerDate}" pattern="yyyy-MM-dd"/>
					  		 至 <fmt:formatDate value="${supplier.supplierRegister.endDate}" pattern="yyyy-MM-dd"/>
									</div>
							</div>
						</div>
				 		<div class="f_2">
								<div class="form-group col-sm-6">
								<label for="inputtext3" class="col-sm-4 control-label f_7">注册资金:</label>
								<div class="col-sm-8 f_6">
									${supplier.supplierRegister.registerAmount}
								</div>
							</div>
							<div class="form-group col-sm-6">
								<label for="inputtext3" class="col-sm-4 control-label f_7">注册地址:</label>
									<div class="col-sm-8 f_6">
										${supplier.supplierRegister.address}
									</div>
							</div>
						</div>
						<div class="f_3">
							<div class="form-group col-sm-6">
									<label for="inputtext3" class="col-sm-4 control-label f_7">法律经营范围:</label>
									<div class="col-sm-5 f_7">
										<textarea rows="5" cols="80" class="form" readonly="readonly">${supplier.supplierRegister.businessScope}</textarea>
									</div>
							</div>
						</div>
					</div>
				</div>
			  	<div class="tab-pane" id="tax_tab">
				 <div class="Report_f_title_4"> 
						<div class="f_2">
								<div class="form-group col-sm-6">
								<label for="inputtext3" class="col-sm-4 control-label f_7">税务登记证号:</label>
								<div class="col-sm-8 f_6">
									${supplier.supplierRegister.landTaxNo}
								</div>
							</div>
							<div class="form-group col-sm-6">
								<label for="inputtext3" class="col-sm-4 control-label f_7">纳税属性:</label>
									<div class="col-sm-8 f_6">
										<ossp:value dictType="SUPPLIER_TAXPROXY" key="${supplier.supplierRegister.taxProxy}"/>
									</div>
							</div>
						</div>
						<div class="f_3">
							<div class="form-group col-sm-6">
									<label for="inputtext3" class="col-sm-4 control-label f_7">税票类型:</label>
									<div class="col-sm-8 f_6">
										<ossp:value dictType="TAX_TYPE" key="${supplier.supplierRegister.taxType}"/>
									</div>
							</div>
						</div>
					</div>
				</div>
			  	<div class="tab-pane" id="contacts_tab">
				 <div class="Report_f_title_4"> 
					<table class="table table-bordered">
						<thead>
							<tr>
								<th>姓名</th>
								<th>类别</th>
								<th>职务</th>
								<th>手机号码</th>
								<th>E-mail</th>
								<th>备注</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${supplier.supplierContactsList}" var="item"
								varStatus="var">
								<tr>
									<td>${item.contactName}</td>
									<td><ossp:value dictType="IS_RESPONPERSON" key="${item.isResponPerson}"/></td>
									<td>${item.position}</td>
									<td>${item.mobile}</td>
									<td>${item.email}</td>
									<td>${item.remark}</td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
					</div>
				</div>
				<div class="tab-pane" id="bank_tab">
				 <div class="Report_f_title_4"> 
					<table class="table table-bordered">
						<thead>
							<tr>
								<th>银行代码</th>
								<th>银行名称</th>
								<th>银行简称</th>
								<th>开户账号</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${supplier.supplierBankList}" var="item"
								varStatus="var">
								<tr>
									<td>${item.bankCode}</td>
									<td>${item.bankName}</td>
									<td>${item.bankSname}</td>
									<td>${item.bankNo}</td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
					</div>
				</div>
			  	<div class="tab-pane" id="coopBrand_tab">
				 <div class="Report_f_title_4"> 
					<table class="table table-bordered">
						<thead>
							<tr>
								<th>品牌编码</th>
								<th>品牌中文名</th>
								<th>品牌英文名</th>
								<th>招商分类</th>
								<th>品牌等级</th>
								<th>合作属性</th>
							</tr>
						</thead>
						<tbody>
								<c:forEach items="${supplier.supplierBrandList}" var="sb">
									<tr>
										<td>${sb.brandNo}</td>
										<td>${sb.brandCname}</td>
										<td>${sb.brandEname}</td>
										<td>${sb.cateName}</td>
										<td>${sb.brandCate.brandLevel.levelName}</td>
										<td>${sb.attrName}</td>
									</tr>
								</c:forEach>
						</tbody>
					</table>
				</div>
			</div>
			 <div class="tab-pane" id="att_tab">
				 <div class="Report_f_title_4"> 
					<table class="table table-bordered">
						<tbody>
							<tr>
								<td class="text-right" style="width: 20%"><strong>组织机构代码证:</strong></td>
								<td>
									<att:down key="organization" soureBillID="${supplier.viceId}" modleName="com.maoye.ossp.biz.brand.entity.Supplier"></att:down>
								</td>
							</tr>
							<tr>
								<td class="text-right" style="width: 20%"><strong>营业执照证:</strong></td>
								<td>
									<att:down key="business" soureBillID="${supplier.viceId}" modleName="com.maoye.ossp.biz.brand.entity.Supplier"></att:down>
								</td>
							</tr>
							<tr>
								<td class="text-right" style="width: 20%"><strong>税务登记证:</strong></td>
								<td>
									<att:down key="landTax" soureBillID="${supplier.viceId}" modleName="com.maoye.ossp.biz.brand.entity.Supplier"></att:down>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
				</div>
				<div class="tab-pane" id="workflow"> 
					<c:import url="/WEB-INF/views/bpm/workflow/workFlowInfo_view.jsp">
						<c:param name="formName" value="com.maoye.ossp.biz.brand.entity.Supplier" />
						<c:param name="flowKey" value="ISupplier" />
						<c:param name="businessId" value="${supplier.id}"/>
						<c:param name="method" value="${method}"/>
						<c:param name="isStart" value="${isStart}"/>
					</c:import> 	
				</div>
				<div class="tab-pane" id="diagram" style="overflow-x:auto;">
					<iframe id="diagram_iframe" scrolling="no" frameborder=0 width="100%">
					</iframe>
				</div>
		</div>
	</div>
	</div>
</div>
</div>
<script type="text/javascript" src="${staticPath}/js/brand.js"></script>
</body>
</html>